//
//  NSDictionary+Safe.h
//  ZPIOSEducation
//
//  Created by mini1 on 2016/12/21.
//  Copyright © 2016年 mini1. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface NSDictionary (Safe)
- (id)safeObjectForKey:(id)key;
- (int)intValueForKey:(id)key;
- (double)doubleValueForKey:(id)key;
- (NSString*)stringValueForKey:(id)key;
//- (NSString*)unescapeStringForKey:(id)key;
@end

@interface NSMutableDictionary(Safe)

- (void)safeSetObject:(id)anObject forKey:(id)aKey;
- (void)setIntValue:(int)value forKey:(id)aKey;
- (void)setDoubleValue:(double)value forKey:(id)aKey;
- (void)setStringValueForKey:(NSString*)string forKey:(id)aKey;
+ (id)changeType:(id)myObj;
+ (NSString *)nullToString;
+ (NSString *)stringToString:(NSString *)string;
+ (NSArray *)nullArr:(NSArray *)myArr;
+ (NSDictionary *)nullDic:(NSDictionary *)myDic;

@end

@interface NSArray (Exception)

- (id)objectForKey:(id)key;

@end

